#include <climits>
#include <cmath>
#include <iostream>

using namespace std;

int cnt[26] = {0};
string str;
int main() {
    cin >> str;
    for (char ch : str) {
        cnt[ch - 'a']++;
    }
    int maxn = 0;
    int minn = INT_MAX;
    for (int i = 0; i < 26; i++) {
        if (cnt[i]) {
            maxn = max(maxn, cnt[i]);
            minn = min(minn, cnt[i]);
        }

    }
    int ret = maxn - minn;
    if (ret < 2) {
        cout << "No Answer" << endl << 0 << endl;
    } else if (ret == 2||ret==3) {
        cout << "Lucky Word" << endl << ret << endl;
    } else if (ret % 2 == 0) {
        cout << "No Answer" << endl <<0 << endl;
    } else {
        for (int i = 3; i <= sqrt(ret); i+=2) {
            if (ret % i == 0) {
                cout << "No Answer" << endl << 0<< endl;
            }
        }
        cout << "Lucky Word" << endl << ret << endl;
    }




}
